package com.study.controller;

import com.study.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: TODO
 * @Author: csc
 * @Date: 2024/7/4 11:19
 * @Version: 1.0
 **/
@RestController
public class TestController {

    @GetMapping("/api/hello")
    public String hello(){
        return "你好";
    }

    @PostMapping("/nihao")
    public String nihao(@RequestBody User user){
        return "你好";
    }

}
